using System.Linq;
using global::System.Collections.Generic;

namespace WpfBlazorFluentUI.Pages;

public partial class Table1
{
    IQueryable<UserInfo>? dataItems;

    private IQueryable<UserInfo> GenerateSampleGridData(int size)
    {
        UserInfo[] data = new UserInfo[size];

        for (int i = 0; i < size; i++)
        {
            data[i] = new UserInfo(i, $"User {i}", i % 80, $"Address no.{i}");
        }
        return data.AsQueryable();
    }

    protected override void OnInitialized()
    {
        base.OnInitialized();

        dataItems = GenerateSampleGridData(999);
    }
}
record UserInfo(int Id, string Name, int Age, string Address);

